package com.lejin.item.controller;


import com.lejin.item.entity.CourseOutline;
import com.lejin.item.service.impl.CourseOutlineServiceImpl;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author luminghua
 * @since 2022-04-20
 */
@RestController
@RequestMapping("/item/course-outline")
public class CourseOutlineController {

    @Autowired
    CourseOutlineServiceImpl courseOutlineService;
    @RequestMapping("sendCourseOutlineByCategory2Id/{c2Id}")
    public List<CourseOutline> sendCourseOutlineByCategory2Id(@PathVariable Integer c2Id){

        return courseOutlineService.sendCourseOutlineByCategory2Id(c2Id);

    }

    @RequestMapping("findCourseOutlineById/{id}")
    public CourseOutline findCourseOutlineById(@PathVariable Integer id){

        return courseOutlineService.findCourseOutlineById(id);

    }


}
